{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<div class="base-layout">
    <div class="mainbox">
        <form method="post" action="{:url('circle/manage/inform')}?c_id=<?php echo $c_id;?>" id="inform_form" onsubmit="ajaxpost('inform_form', '<?php echo url('circle/manage/inform');?>?c_id=<?php echo $c_id;?>', '', 'onerror');">
            {include file="circle:manage:top" /}

            <table class="base-table-style">
                <thead>
                <tr>
                    <th class="w30"></th>
                    <th class="tl">举报详情</th>
                    <th class="w120">举报人</th>
                    <th class="w120">处理结果</th>
                    <th class="w90">操作</th>
                </tr>
                <tr>
                    <td class="tc"><input id="all" class="checkall" type="checkbox" /></td>
                    <td colspan="20"><label for="all" class="handle-btn"><i class="ac0"></i>全选</label>
                        <a href="javascript:void(0);" class="handle-btn" nctype="batchbutton" uri="<?php echo url('circle/manage/delinform');?>?c_id=<?php echo $c_id;?>" name="i_id" confirm="确认删除" title="删除"><i class="ac5"></i>删除</a></td>
                </tr>
                </thead>
                <tbody>
                <?php if(!empty($inform_list)){?>
                <?php foreach (($inform_list) as $val){?>
                <tr>
                    <td><input type="checkbox" class="checkitem" name="i_id[]" value="<?php echo $val['inform_id'];?>" /></td>
                    <td class="tl"><dl class="inform">
                        <dt><strong>举报链接：</strong><a href="<?php echo $val['url'];?>" target="_blank"><?php echo $val['title'];?></a></dt>
                        <dd><strong>举报内容：</strong><span class="tip" title="<?php echo $val['inform_content'];?>"><?php echo $val['inform_content'];?></span></dd>
                    </dl></td>
                    <td><?php echo $val['member_name'];?></td>
                    <td class="inform-hanele"><p><strong>处理经办：</strong><span><?php echo $val['inform_opname'];?></span></p>
                        <p>
                            <strong>奖惩结果：</strong><span>奖惩：<?php if($val['inform_opexp'] == '0'){echo '无奖惩';}else{ echo $val['inform_opexp'].'经验';}?></span>
                        </p></td>
                    <td class="handle"><a href="javascript:void(0);" onclick="delinform(<?php echo $val['inform_id'];?>);">删除</a></td>
                </tr>
                <tr>
                    <td colspan="5" class="inform-note">备注留言：<?php echo $val['inform_opresult'];?></td>
                </tr>
                <?php }?>
                <?php }else{?>
                <tr>
                    <td colspan="20" class="noborder"><p class="no-record">没有符合条件的记录</p></td>
                </tr>
                <?php }?>
                </tbody>
                <?php if(!empty($inform_list)){?>
                <tfoot>
                <tr>
                    <th class="tc"><input id="all" class="checkall" type="checkbox" /></th>
                    <th colspan="20"><label for="all" class="handle-btn"><i class="ac0"></i>全选</label>
                        <a href="javascript:void(0);" class="handle-btn" nctype="batchbutton" uri="<?php echo url('circle/manage/delinform');?>?c_id=<?php echo $c_id;?>" name="i_id" confirm="确认删除？" title="删除"><i class="ac5"></i>删除</a> </th>
                </tr>
                <tr>
                    <td colspan="20"><div class="pagination"><?php echo $show_page;?></div></td>
                </tr>
                </tfoot>
                <?php }?>
            </table>
        </form>
    </div>
    <div class="sidebar">
        {include file="circle:manage:sidebar" /}

    </div>
</div>
<script src="__CIRCLE_RESOURCE__/js/circle_manage.js"></script>
<script>
    var c_id = <?php echo $c_id;?>;
    function delinform(i_id){
        showDialog('您确定要删除吗?', 'confirm', '', function(){
            _uri = "<?php echo url('circle/manage/delinform');?>?c_id="+c_id+"&i_id="+i_id;
            ajaxget(_uri);
        });
    }
    //Ajax提示
    $(function(){
        $('.tip').poshytip({
            className: 'tip-yellowsimple',
            showTimeout: 1,
            alignTo: 'target',
            alignX: 'center',
            alignY: 'bottom',
            offsetY: 5,
            allowTipHover: false
        });
    });
</script>
{/block}